package com.lgx.mall.basic.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.mall.basic.entity.Address;

/**
 * 
 * @author ZHANGCHAO
 *
 */

public interface IAddressDao {
	public Address createAddress(Address address) throws DataException;      		//创建Address
	public Address updateAddress(Address address) throws DataException;			    //修改Address
	public void deleteAddress(Address address) throws DataException;				//根据对象删除Address
	public void deleteAddressById(long id) throws DataException;		    		//根据id删除Address
	public void deleteAddress(String[] ids) throws DataException;          		    //多项删除
	public Address findAddressById(long id);							        	//根据id查找Address
	public List<Address> findAddressList(long userId,Integer isdefault);
	public List<Address> findAddressList(long userId);
}
